package cn.jtfadmin.core.modules.sys.domain.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.entity.params.ExcelBaseEntity;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import cn.jtfadmin.base.lang.common.domain.dto.BaseExcelModalDTO;
import cn.jtfadmin.base.lang.common.domain.dto.BaseTreeExcelModalDTO;
import cn.jtfadmin.core.constant.OrgTypeConstant;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * SysDepartEntity导出导入参数
 */
@Data
public class SysDepartExcelDTO extends BaseTreeExcelModalDTO {

    /**
     * 部门名称
     */
    @Excel(name = "机构编号")
    @Size(max = 100)
    @NotBlank
    protected String no;


    /**
     * 部门名称
     */
    @Excel(name = "机构名称")
    @Size(max = 100)
    @NotBlank
    protected String name;

    @Excel(name = "机构类型", dict = OrgTypeConstant.ORG_TYPE_DICT_CODE)
    protected Integer orgType;

    /**
     * 部门排序
     */
    @Excel(name = "排序")
    @NotNull
    protected Integer sort;


    /**
     * 手机号
     */
    @Excel(name = "联系电话")
    @Size(max = 20)
    protected String mobile;

    /**
     * 传真
     */
    @Excel(name = "传真")
    @Size(max = 200)
    protected String fax;

    /**
     * 地址
     */
    @Size(max = 200)
    @Excel(name = "地址")
    protected String address;

    /**
     * 备注
     */
    @Size(max = 200)
    @Excel(name = "备注")
    protected String memo;


    /**
     * 负责人账号
     */
    @Excel(name = "负责人账号")
    protected String leaderUsersUsernames;

    /**
     * 负责人姓名
     */
    @Excel(name = "负责人姓名")
    protected String leaderUsersRealnames;

    /**
     * 上级部门
     */
    @Excel(name = "上级部门编号")
    protected String pidName;


    @Excel(name = "上级部门")
    protected String parentName;


}
